package com.example.gyt.service;

import com.example.gyt.dao.NewslMapper;
import com.example.gyt.dao.UserMapper;
import com.example.gyt.pojo.Newsl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NewslService {

    @Autowired
    private NewslMapper newslMapper;

    public int deleteByPrimaryKey(String id){
        return newslMapper.deleteByPrimaryKey(id);
    }


    public int insertSelective(Newsl record){
        return newslMapper.insertSelective(record);
    }

    public Newsl selectByPrimaryKey(String id){
        return newslMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(Newsl record){
        return newslMapper.updateByPrimaryKeySelective(record);
    }

    public List<Newsl> getAllNewslList(Newsl record){
        return newslMapper.getAllNewslList(record);
    }

    public int queryCountLike(Newsl record){
        return newslMapper.queryCountLike(record);
    }
}
